<template>
  <div class="main">
        <div class="good" v-for="(item,index) in tabs[currentIndex].goods" :key="index">
            <div class="imgBox">
                <img :src="item.pic" alt="">
            </div>
            <div class="text">
                <div class="name">{{item.name}}</div>
                <div class="infor">{{item.infor}}</div>
                <div>
                    <span>月售{{item.count}}</span>
                    <span>好评100%</span>
                </div>
                <div class="price">
                    <span>￥{{item.price}}</span>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: ['tabs','currentIndex']
}
</script>

<style lang="scss" scoped>
    .main{
        flex: 1;
        position: absolute;
        left: 70px;
    }
    .good{
        margin: 10px;
        display: flex;
    }
    .imgBox{
        width: 110px;
    }
    .text{
        flex: 1;
    }
    .text .name{
        margin-top: 5px;
        font-size: 20px;
        font-weight: bold;
    }
    img{
        margin: 10px;
        height: 90px;
        width: 90px;
    }
    .infor{
        font-size: 14px;
    }
    .price{
        font-size: 18px;
        color:orangered;
    }
</style>